home *** CD-ROM | disk | FTP | other *** search
/ National Security Press Kit / National Security Press Kit.iso / mac / Acrobat Reader 5 / Acrobat Reader 5.0 / Acrobat Reader 5.0.rsrc / EXVW_10019_admCropDialog < prev    next >
Text File  |  2001-09-24  |  5KB  |  109 lines

  1. gCropMarginWidth = max(
  2.     zstring_width(zstring: '$$$avCropCustomMargins'),
  3.     zstring_width(zstring: '$$$avCropBoundingBox'),
  4.     zstring_width(zstring: '$$$avNone'));
  5. gCropWhichWidth = max(
  6.     zstring_width(zstring: '$$$avCropEvenAndOdd'),
  7.     zstring_width(zstring: '$$$avCropOddOnly'),
  8.     zstring_width(zstring: '$$$avCropEvenOnly'));
  9.  
  10. gBWidth = zstring_width(zstring: '$$$/Dialogs/CropDlg/Bottom');
  11. gRWidth = zstring_width(zstring: '$$$/Dialogs/CropDlg/Right');
  12. gTWidth = zstring_width(zstring: '$$$/Dialogs/CropDlg/top');
  13. gLWidth = zstring_width(zstring: '$$$/Dialogs/CropDlg/Left');
  14. gTLWidth = max( gTWidth, gLWidth ) + (max_char_width() * 1);
  15. gBRWidth = max( gBWidth , gRWidth ) + (max_char_width() * 1);
  16. gSetValuesWidth = zstring_width(zstring: '$$$/Dialogs/CropDlg/SetValues');
  17.  
  18. gFromToWidth = max_digit_width() * 10;
  19.  
  20. gMaxTopBottom = max(
  21.     zstring_width(zstring: '$$$/Dialogs/CropDlg/top'),
  22.     zstring_width(zstring: '$$$/Dialogs/CropDlg/Bottom'));
  23.     
  24. gMaxLeftRight = max(
  25.     zstring_width(zstring: '$$$/Dialogs/CropDlg/Left'),
  26.     zstring_width(zstring: '$$$/Dialogs/CropDlg/Right'));
  27.     
  28. gMaxButtonWidth = max(
  29.     zstring_width(zstring: '$$$/Dialogs/CropDlg/RemoveWhiteMargins'),
  30.     zstring_width(zstring: '$$$/Dialogs/CropDlg/SetValues'),
  31.     zstring_width(zstring: '$$$/Dialogs/CropDlg/SetToZero'));
  32.  
  33. gSpinEditWidth = max_digit_width() * 6 + 32;
  34.  
  35. dialog(name: '$$$/Dialogs/CropDlg')
  36. {
  37.     view( align_children: align_left)
  38.     {
  39.         cluster(item_id: 'gbx1', name: '$$$/Dialogs/CropDlg/MarginsGrp', align_children: align_left,
  40.             alignment: align_left)
  41.         {
  42.             view(align_children: align_fill)
  43.             {
  44.                 view(align_children: align_row, alignment: align_center)
  45.                 {
  46.                     static_text(name: '$$$/Dialogs/CropDlg/top', width: gMaxTopBottom, alignment: align_right);
  47.                     edit_text(item_id: 'top ', SpinEdit: true, width: gSpinEditWidth, alignment: align_center);
  48.                     static_text(name: '$$$/Dialogs/EmptyStr', width: gMaxTopBottom);
  49.                 }
  50.                 view(align_children: align_row, alignment: align_center)
  51.                 {
  52.                     static_text(name: '$$$/Dialogs/CropDlg/Left', width: gMaxLeftRight, alignment: align_right);
  53.                     edit_text(item_id: 'left', SpinEdit: true, width: gSpinEditWidth);
  54.                     user_item( item_id: 'thmb', width: 104, height: 104, alignment: align_center);
  55.                     static_text(name: '$$$/Dialogs/CropDlg/Right', width: gMaxLeftRight, alignment: align_right);
  56.                     edit_text(item_id: 'rght', SpinEdit: true, width: gSpinEditWidth);
  57.                 }
  58.                 view(align_children: align_row, alignment: align_center)
  59.                 {
  60.                     static_text(name: '$$$/Dialogs/CropDlg/Bottom', width: gMaxTopBottom, alignment: align_right);
  61.                     edit_text(item_id: 'bttm', SpinEdit: true, width: gSpinEditWidth, alignment: align_center);
  62.                     static_text(name: '$$$/Dialogs/EmptyStr', width: gMaxTopBottom);
  63.                 }
  64.             }
  65.             view(align_children: align_row, alignment: align_left)
  66.             {
  67.                 static_text(item_id: 'psiz', width: max_char_width() * 25);
  68.             }
  69.             view(align_children: align_row, alignment: align_left)
  70.             {
  71.                 static_text(name: '$$$/Dialogs/CropDlg/SetValues', width: gSetValuesWidth, alignment: align_right);
  72.                 button(item_id: 'zero', name: '$$$/Dialogs/CropDlg/SetToZero', width: gMaxButtonWidth, alignment: align_left);
  73.                 button(item_id: 'revt', name: '$$$/Dialogs/CropDlg/Revert', width: gMaxButtonWidth, alignment: align_left);
  74.             }
  75.             view(align_children: align_row, alignment: align_left)
  76.             {
  77.                 static_text(name: '$$$/Dialogs/CropDlg/EmptyStr', width: gSetValuesWidth, alignment: align_right);
  78.                 check_box(item_id: 'whit', name: '$$$/Dialogs/CropDlg/RemoveWhiteMargins');
  79.             }
  80.         }
  81.         cluster(item_id: 'gbx2', name: '$$$/Dialogs/CropDlg/Range', align_children: align_distribute,
  82.             alignment: align_fill)
  83.         {
  84.             view(align_children: align_top)
  85.             {
  86.                 view(align_children: align_left)
  87.                 {
  88.                     radio(item_id: 'all ', name: '$$$/Dialogs/PageNumbering/Pages/All', height: gEditTextHeight);
  89.                     radio(item_id: 'slct', name: '$$$/Dialogs/PageNumbering/Pages/Selected', height: gEditTextHeight);
  90.                     view(align_children: align_row)
  91.                     {
  92.                         radio(item_id: 'from', name: '$$$/Dialogs/PageNumbering/Pages/From');
  93.                         edit_text(item_id: 'FrPg', width: gFromToWidth);            
  94.                         static_text(name: '$$$/Dialogs/PageNumbering/Pages/To');            
  95.                         edit_text(item_id: 'ToPg', width: gFromToWidth);            
  96.                         static_text(item_id: 'NumP', name: '$$$/Dialogs/PageNumbering/Pages/NumPages');            
  97.                     }
  98.                     view(align_children: align_row)
  99.                     {
  100.                         static_text(name: '$$$/Dialogs/CropDlg/Which', alignment: align_right);
  101.                         popup(item_id: 'whch', width: gCropWhichWidth);
  102.                     }
  103.                 }
  104.             }
  105.         }
  106.         ok_cancel();
  107.     }
  108. }
  109.